package com.naiterui.ehp.bs.pharmacist.vo.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author guoyongxiang
 * @date 2019/12/4 11:19
 * @since 1.0.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class PharmacistParamVO {

    @ApiModelProperty("药师ID(仅添加时需要)")
    private Long id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("身份证号")
    private String cardNo;

    @ApiModelProperty("民族")
    private String ethnicity;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty(value = "专业")
    private String skill;

    @ApiModelProperty(value = "职称(1:药士, 2:药师, 3:主管药师, 4:副主任药师, 5:主任药师),描述使用titleIdDescribe")
    private Integer titleId;

    @ApiModelProperty(value = "药师资格证编号")
    private String licenseNo;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "资格证取得时间")
    private Date licenseDate;

    @ApiModelProperty(value = "资格证地址")
    private String licenseUrl;

    @ApiModelProperty(value = "医生身份证正面照片地址")
    private String frontUrl;

    @ApiModelProperty(value = "医生身份证反面照片地址")
    private String backUrl;

    @ApiModelProperty(value = "签名图片")
    private String sealImage;

    @Override
    public String toString() {
        return "PharmacistParamVO{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", cardNo='" + cardNo + '\'' +
            ", ethnicity='" + ethnicity + '\'' +
            ", phone='" + phone + '\'' +
            ", skill='" + skill + '\'' +
            ", titleId=" + titleId +
            ", licenseNo='" + licenseNo + '\'' +
            ", licenseDate=" + licenseDate +
            ", licenseUrl='" + licenseUrl + '\'' +
            ", frontUrl='" + frontUrl + '\'' +
            ", backUrl='" + backUrl + '\'' +
            ", sealImage='" + sealImage + '\'' +
            '}';
    }
}
